package com.cskaoyan.controller;

import com.cskaoyan.bean.zhao_order_bean.BasePageData;
import com.cskaoyan.bean.basebean.BaseParam;
import com.cskaoyan.bean.basebean.BaseRespVo;
import com.cskaoyan.service.LogService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("admin/log")
public class LogController {
    @Autowired
    LogService logService;

    //操作日志
    @RequiresPermissions(value = "admin:log:list")
    @RequestMapping("list")
    public BaseRespVo getLogList(String name, BaseParam param) {
        BasePageData pageData = logService.quaryLogList(name,param);
        return BaseRespVo.ok(pageData);
    }

}
